double MSLUMarkovCreate(double FileID, double InitialState, double Interval);
FileID: ID of file containing description of Markov chain.
InitialState: Initial state.
Interval: Interval after which state transition will occur.
Creates new Markov chain with description as specified in file "MSLUMarkov.<FileID>.txt", initial state as in "InitialState", and interval as in "Interval".
Unique Markov chain identifier.
double MSLUMarkovCreate2(double FileID, double InitialState, double Interval, double RNGFileID);
FileID: ID of file containing description of Markov chain.
InitialState: Initial state.
Interval: Interval after which state transition will occur.
RNGFileID: ID of file containing random values.
Creates new Markov chain with description as specified in file "MSLUBuffer.<FileID>.txt", initial state as in "InitialState", and interval as in "Interval" and random values as in "MSLUMarkovRNG.<RNGFileID>.txt".
Unique Markov chain identifier.
double MSLUMarkovRemove(double ID);
ID: Markov chain identifier.
Remove Markov chain with identifier "ID".
Always returns 0.
double MSLUMarkovRemoveAll(void);
Remove all Markov chains.
Always returns 0.
double MSLUMarkovGet(double ID, double Time, double* Flags, double RandValue);
ID: Markov chain identifier.
Time: Current simulation time.
Flags: List of flags.
RandValue: Random value between 0 and 1.
Go to next state (in case "Interval" has expired).
New state is returned as return argument. Associated flags are returned through corresponding right-hand side argument.
double MSLUMarkovGetProbs(double ID, double State, double* Probs);
ID: Markov chain identifier.
State: Current state.
Probs: List of probabilities.
Get probabilities associated with the current state.
Probabilities associated with current state.
double MSLUMarkovSetProbs(double ID, double State, double* Probs);
ID: Markov chain identifier.
State: Current state.
Probs: List of probabilities.
Set probabilities associated with the current state.
Always returns 0.